# _*_ coding=utf-8 _*_
import pytest
import os

if __name__ == '__main__':
    # 运行测试用例
    # pytest.main([r"G:\03Project\10TG_Ui\Cases\logincases\test_login.py::TestLogin::test_login_success", "--alluredir=./../OutPuts/allure_data"])
    pytest.main([r"G:\03Project\10TG_Ui\Cases\personalcodecases\test_personalcode.py::TestPersonCode::test_add_employeecode", "--alluredir=./../OutPuts/allure_data"])
    # 生成网页报告
    os.system("allure generate ./../OutPuts/allure_data --clean  -o ./../OutPuts/allure_report")
    # 打开网页服务
    os.system("allure open ./../OutPuts/allure_report")
    #
    # os.system("airtest run ..\\start.py --log .\log --recording")
    # os.system("airtest report_allure ..\\start.py --log_root log/ --outfile log.html --lang zh")
    # os.system("airtest run D:\PycharmProjects\python_web_framework\Cases\personalcodecases\\test_personalcode.py --log .\log --recording")
    # os.system("airtest report_allure D:\PycharmProjects\python_web_framework\Cases\personalcodecases\\test_personalcode.py --log_root log/ --outfile log.html --lang zh")
